package com.example.danci.server.lmpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.danci.model.entity.User;
import com.example.danci.mapper.UserMapper;
import com.example.danci.server.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServicelmpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public boolean updateByPhone(int id , String phone) {
        return userMapper.updateByPhone(id, phone);
    }

    @Override
    public boolean updateByImg(int id , byte[] img) {
        return userMapper.updateByImg(id, img);
    }

    @Override
    public boolean updateByPassword(int id , String password) {
        return userMapper.updateByPassword(id, password);
    }

    @Override
    public boolean updateByUsername(int id , String username) {
        return userMapper.updateByUsername(id, username);
    }

}
